package com.bifrost.repository;

import com.bifrost.entity.Coupon;
import com.bifrost.entity.CouponMerchant;
import com.bifrost.entity.MerchantStore;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author rangf
 * @date 2018/5/8
 */
public interface CouponMerchantRepository extends JpaRepository<CouponMerchant, Long> {
    CouponMerchant getByCouponAndMerchantStore(Coupon coupon, MerchantStore merchantStore);
}
